package Testking14;

class SuperA {
 void foo() throws Exception { throw new Exception(); }
 }

class Tester extends SuperA{
	void foo() { System.out.println("B "); }
}

public class SubB2 {
	public static void main(String[] args) {
		SuperA a = new Tester();
		try {
			a.foo();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
